package cn.wolfcode.luowowo.article.domain;


import cn.wolfcode.luowowo.common.domain.BaseDomain;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
public class Answer extends BaseDomain {
    public static final int STATE_NORMAL = 0; //待审核
    public static final int STATE_DISABLE = 1; //正常

    public static final int REPLY_LEVEL_COMMON = 0; //普通
    public static final int REPLY_DISABLE_GOLD = 1; //金牌

    private long thumsupnum; //顶的次数

    private long replynum; //评论数

    private int level = REPLY_LEVEL_COMMON; //回复等级

    private Date createTime; //回答时间

    private int state  = STATE_DISABLE; //状态

    private Long questionId; //所回答的问题的id

    private UserInfo author; //用户id

    private AnswerContent content; //回复内容

}